<div id="blacklists">
    <? echo $adminMenu->settings(); ?>

    <h2><?php __('Blacklist administration');?> (<? echo $html->link(__('new IP address',true), array('action'=>'add')); ?>)</h2>
    <? echo $form -> create(array('Action'=>'Delete_blacklists')); ?>

    <table cellpadding="3" cellspacing="1" width="100%">
        <tr>
            <td width="10%"></td>
            <td></td>
            <td width="10%"></td>
        </tr>
        <tr class="table_head">
            <td colspan="2" class="first-top">
                <? echo $pagination -> create(null,'articles'); ?>
            </td>
            <td class="last-top">
            </td>
        </tr>
        <tr>
            <th><? __('Action'); ?></th>
            <th><? __('IP address'); ?></th>
            <th><? __('Delete'); ?> <input type="checkbox" onclick="checkAll(this,'BlacklistDeleteBlacklistsForm')"/></th>
        </tr>
        <?php
        $i = 0;
        foreach ($blacklists as $blacklist):
            $class = null;
            if ($i++ % 2 == 0) {
                $class = ' class="altrow"';
            }
            ?>
        <tr<?php echo $class;?>>
            <td>
                    <? echo $html->link($html->image('Edit.png',array('alt'=>__('Edit', true))),array('action'=>'Edit', $blacklist['Blacklist']['id']),array('title'=>__('Edit',true)),null,false); ?>
                    <? echo $html->link($html->image('bin.png',array('alt'=>__('Delete', true))), array('action'=>'Delete', $blacklist['Blacklist']['id']),array('title'=>__('Delete',true)), __('Delete item', true).' #' . $blacklist['Blacklist']['ip_address'],false); ?>
            </td>
            <td>
                    <?php echo $html->link($blacklist['Blacklist']['ip_address'],array('action'=>'edit',$blacklist['Blacklist']['id'])); ?>
            </td>
            <td  align="center">
                <input type="checkbox" name="data[BlacklistsDelete][]" value="<? echo $blacklist['Blacklist']['id']; ?>"/>
            </td>
        </tr>
        <?php endforeach; ?>
        <tr class="table_head">
            <td colspan="2" class="first-bottom">
                <? echo $pagination -> create(null,'articles'); ?>
            </td>
            <td class="last-bottom">
            </td>
        </tr>
    </table>
    <div style="float: right; margin: 1em;"><? echo $form -> submit(__('Delete',true)); ?></div>
</form>
</div>
